package com.hmall.item.constants;

public class ItemIndexConstants {

    public static final String MAPPING_TEMPLATE =
                    "{\n" +
                    "  \"mappings\": {\n" +
                    "    \"properties\": {\n" +
                    "      \"id\": {\n" +
                    "        \"type\": \"long\"\n" +
                    "      },\n" +
                    "      \"name\": {\n" +
                    "        \"type\": \"text\",\n" +
                    "        \"copy_to\": \"all\"\n" +
                    "      },\n" +
                    "      \"category\": {\n" +
                    "        \"type\": \"keyword\",\n" +
                    "        \"copy_to\": \"all\"\n" +
                    "      },\n" +
                    "      \"brand\": {\n" +
                    "        \"type\": \"keyword\",\n" +
                    "        \"copy_to\": \"all\"\n" +
                    "      },\n" +
                    "      \"price\": {\n" +
                    "        \"type\": \"integer\"\n" +
                    "      },\n" +
                    "      \"sold\": {\n" +
                    "        \"type\": \"integer\"\n" +
                    "      },\n" +
                    "      \"comment_count\": {\n" +
                    "        \"type\": \"integer\"\n" +
                    "      },\n" +
                    "      \"image\": {\n" +
                    "        \"type\": \"text\"\n" +
                    "      },\n" +
                    "      \"isAD\": {\n" +
                    "        \"type\": \"boolean\"\n" +
                    "      },\n" +
                    "      \"all\": {\n" +
                    "        \"type\": \"text\",\n" +
                    "        \"analyzer\": \"ik_max_word\"\n" +
                    "      }\n" +
                    "    }\n" +
                    "  }\n" +
                    "}";
}
